package com.itheima.volatiledemo2;

public class MyThread2 extends Thread {
    @Override
    public void run() {
        try {
            Thread.sleep(10);
        } catch (InterruptedException e) {
            e.printStackTrace();
        }
        synchronized (Money.lock) {
            Money.money = 90000;
        }

    }
}
